-- GENERATED SPELL FOR [High-Shaman Rakjak] --


function spell0_28082(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(33643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28082', 3000, 1)
end

function spell1_28082(pUnit, Event) --@Thunderbolt,n/a--
pUnit:FullCastSpellOnTarget(52905,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28082', 3000, 1)
end

function Sorts_28082(pUnit, Event)
local choix_sorts_28082 = math.random(0, 1)
if choix_sorts_28082 == 0 then
pUnit:RegisterEvent('spell0_28082', 1, 1)
end
if choix_sorts_28082 == 1 then
pUnit:RegisterEvent('spell1_28082', 1, 1)
end
end

function mob28082_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28082', math.random(1500, 3000), 1)
end

function mob28082_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28082_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28082_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28082, 1, 'mob28082_Action')
RegisterUnitEvent(28082, 2, 'mob28082_Leave')
RegisterUnitEvent(28082, 3, 'mob28082_Kill')
RegisterUnitEvent(28082, 4, 'mob28082_Die')
